package cn.jiyun.user.service.impl;

import cn.jiyun.user.mapper.UserMapper;
import cn.jiyun.user.pojo.Users;
import cn.jiyun.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceimpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public void addUser(Users users) {
        userMapper.inserUser(users);
    }

    @Override
    public List<Users> findAll() {
        List<Users> usersList= userMapper.selectAll();
        return usersList;
    }
}
